// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import VLabel from './components/matirials/label/VLabel'
import VLabelShotcut from '@/components/matirials/label/VLabelShotcut'
import VLabelPropEdit from '@/components/matirials/label/VLabelPropEdit'
import VImage from './components/matirials/image/VImage'
import VImageShotcut from '@/components/matirials/image/VImageShotcut'
import VImagePropEdit from '@/components/matirials/image/VImagePropEdit'
import LandingPage from '@/components/LandingPage'
import VOperator from '@/components/public/OperatorComponent'
import VDRM from '@/components/public/DefaultRightMenu'
import Header from '@/admin/Header.vue'
import SideMenu from '@/admin/SideMenu.vue'
import RightMenu from '@/admin/RightMenu.vue'
import Tools from '@/admin/Tools.vue'
import 'element-ui/lib/theme-chalk/index.css'
import 'normalize.css/normalize.css'

Vue.config.productionTip = false
Vue.use(ElementUI)

Vue.component('VOperator', VOperator)
Vue.component('v-drm', VDRM)
Vue.component('v-label', VLabel)
Vue.component('landing-page', LandingPage)
Vue.component('v-header', Header)
Vue.component('v-tools', Tools)
Vue.component('v-side-menu', SideMenu)
Vue.component('v-right-menu', RightMenu)
Vue.component('v-label-shotcut', VLabelShotcut)
Vue.component('v-label-prop-edit', VLabelPropEdit)
Vue.component('v-image', VImage)
Vue.component('v-image-shotcut', VImageShotcut)
Vue.component('v-image-prop-edit', VImagePropEdit)

/* eslint-disable no-new */
var vm = new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})

export default vm
